package com.unknownman.block.job;

import com.unknownman.block.transaction.InitChainTranSubscribe;
import lombok.extern.slf4j.Slf4j;
import org.cloud.core.redis.RedisUtil;
import org.cloud.scheduler.constants.MisfireEnum;
import org.cloud.scheduler.job.BaseQuartzJobBean;
import org.jetbrains.annotations.NotNull;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 初始化交易订阅任务
 */
@Slf4j
public class InitTranSubscribeJob2 extends BaseQuartzJobBean {

    @Autowired
    private InitChainTranSubscribe initChainTranSubscribe;

    @Autowired
    RedisUtil redisUtil;

    @Override
    protected void init() {
        this.jobName = "初始化交易订阅任务";
        jobData.put("description", "初始化交易订阅任务");
        this.jobTime = "0/30 * * * * ?";
        setMisfire(MisfireEnum.CronScheduleMisfireEnum.MISFIRE_INSTRUCTION_DO_NOTHING);
    }

    @Override
    protected void executeInternal(@NotNull JobExecutionContext jobExecutionContext) throws JobExecutionException {

    }
}